package only.my.railgunys.artifact.imp;

import only.my.railgunys.artifact.ArtifactSuitEffect;
import only.my.railgunys.bean.Character;

public class BlizzardStrayer implements ArtifactSuitEffect {
    @Override
    public Character setEffect2Piece(Character character) {
        character.addIncrease(15D);
//        character.addDescription("冰2");
        character.setSuit(character.getSuit()+"冰2");
        return character;
    }

    @Override
    public Character setEffect4Piece(Character character) {
        boolean isFrozen = character.getEnemy().getElementstate() == 2;
        character.addCritRate(isFrozen?40D:20D);
        character.addDescription(isFrozen?"冰冻":"挂冰");
        character.setSuit("冰4");
        return character;
    }
}
